package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberShopDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 会员店铺信息Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-28
 */
@Repository
public interface MemberShopRepository extends JpaRepository<MemberShopDO, Long>, JpaSpecificationExecutor<MemberShopDO> {
    MemberShopDO findFirstByMemberIdAndRoleId(Long memberId, Long roleId);
}
